<div id="head_right">
		<?php 
			$lang_url = trim(preg_replace('(ru|en)', '', $this->uri->uri_string), '/');
		?>
		<div id="lang_wraper" style="float:right;">
			<a href="<?php echo site_url('ru/'.$lang_url);?>"><img src="/img/style/rus.png"></img></a>
			<a href="<?php echo site_url('en/'.$lang_url);?>"><img src="/img/style/eng.png"></img></a>
		</div>
		 <?php if (!empty($is_logged)): ?>		
			 <?php echo anchor('user/profile', T_('Welcome ').$this->auth->getUserData('user_first_name') , 'id="user_name"') ?>		 		
		 	 <?php echo anchor('inbox', T_(' ! Inbox ').'('.$inbox_number.') ', 'id="inbox"'); ?>
		 	 <?php echo anchor('user/logout', T_('Sign Out'), 'id="Sign_Out"'); ?>	 	 	
			 <?php echo anchor('user/post_request', T_('Post Referal Request'), 'id="post_ref_req" class="buttonStyle"'); ?>		
		 <?php else: ?>
			 <?php echo anchor('user/login', T_('Sign In'), 'id="Sign_In"'); ?>
			 <?php echo anchor('user/registration', T_('Register'), 'id="Register"'); ?>
		 <?php endif; ?>	
</div>  